package br.com.felix.fwt.svg.marker;

import br.com.felix.fwt.svg.SVG;
import br.com.felix.fwt.svg.SVGBuilder;
import br.com.felix.fwt.svg.SVGId;
import br.com.felix.fwt.svg.SVGViewBox;

public class SVGMarker implements SVG{

	private SVGMarkerUnits markerUnits;
	
	private SVGId id;
	
	private int x, y, width, height;
	
	private SVGViewBox viewBox;
	
	private SVGOrientation orient;

	@Override
	public void toSVG(SVGBuilder svgBuilder) {
		svgBuilder.createElement("marker")
			.id(id)
			.attribute("refx", x)
			.attribute("refy", y)
			.attribute("markerWidth", width)
			.attribute("markerHeight", height)
			.attribute("viewBox", viewBox)
			.attribute("orient", orient)
			.attribute("markerUnits", markerUnits)
			.endElementNoBody();
	}
	
	
}
